﻿using DimensionsHelper.Common.Contracts.Services;

namespace DimensionsHelper.Client.Services;

public class MessageService : IMessageService
{
    public async Task ShowAsync(string message, string? title)
    {
        await Task.Run(() =>
        {
            if (!string.IsNullOrEmpty(title))
            {
                MessageBox.Show(Application.Current.MainWindow, message, title);
            }
            else
            {
                MessageBox.Show(Application.Current.MainWindow, message);
            }
        });
    }


    public async Task ShowAsync(string message, string? title, string button, Action clickAction)
    {
        await Task.Run(() =>
        {
            
        });
    }

}
